package com.dinghui.ebookbag.module.middle.fragment;

import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.drawable.BitmapDrawable;
import android.net.wifi.WifiManager;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.text.format.Formatter;
import android.util.DisplayMetrics;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.bumptech.glide.request.RequestOptions;
import com.dinghui.ebookbag.BaseFragment;
import com.dinghui.ebookbag.R;
import com.dinghui.ebookbag.enity.Msg;
import com.dinghui.ebookbag.enity.PackInfo;
import com.dinghui.ebookbag.enity.User;
import com.dinghui.ebookbag.module.middle.FlipClassroomActivity;
import com.dinghui.ebookbag.module.middle.adapter.MsgAdapter;
import com.dinghui.ebookbag.module.middle.adapter.OnlineStuAdapter;
import com.dinghui.ebookbag.utils.Util;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.MulticastSocket;
import java.net.SocketException;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;

// 翻转课堂
public class FlipClassroomFragment extends BaseFragment implements View.OnClickListener {

    private LinearLayout flipClassroomLl;

    @Override
    public View createView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_flip_classroom,container, false);
    }

    @Override
    public void initView(View view) {
        flipClassroomLl = view.findViewById(R.id.flip_classroom_ll);
        flipClassroomLl.setOnClickListener(this);
    }


    @Override
    public void initData() {

    }


    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.flip_classroom_ll:
                startActivity(new Intent(getContext(), FlipClassroomActivity.class));
                break;
        }
    }


}
